#!/usr/bin/php -q
<?php
/*
 * Updates all-list and x number of recent albums
 *
 * Param:
 * limit
 *
/* --------------------------------------------------------------------------- */

require('../../fst.extension.php');

$limit = $_GET['limit'];
if (!$limit) $limit = 5;

$fst = new FSTExtension();
$fst->is_cron = true;
$fst->updateSomeAlbumsAndList($limit);

// $fst->updateAllAlbumsList('CRON: updateAllAlbumsList');
// $fst->updateSomeAlbums($limit, 0, 'CRON: updateSomeAlbums');

echo 'DONE!';

?>